package counter.com.connproperty.datalink;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class AddDatalinkInfoProperty {
    @NotBlank(message = "ip不为空")
    @Pattern(regexp = "(((\\d{1,2})|(1\\d{1,2})|(2[0-4]\\d)|(25[0-5]))\\.){3}((\\d{1,2})|(1\\d{1,2})|(2[0-4]\\d)|(25[0-5]))", message = "ip不合法")
    String ip;
    @NotBlank(message = "位置不为空")
    String location;
}
